package com.suning.sawp.intf.model.vo;

import org.apache.commons.lang3.StringUtils;

import com.suning.sawp.intf.model.ModelConstant;

/**
 * 样机管理<br>
 * 分配任务详情
 *
 * @author 15050519
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class ModelTaskDetailVo {

    /**
     * 品类 品牌
     */
    private ModelTaskCateVo cate;
    
    /**
     * 样机清单总数量
     */
    private int modelTotal;
    
    /**
     * 盘点数量
     */
    private int inventoryCnt;
    
    /**
     * 任务状态
     */
    private String taskStatus;
    
    /**
     * 任务状态编码
     */
    private String taskStatusCode;
    
    /**
     * 分配人
     */
    private String assignPerson;
    
    /**
     * 盘点人
     */
    private String inventoryPerson;
    
    public int getModelTotal() {
        return modelTotal;
    }

    public void setModelTotal(int modelTotal) {
        this.modelTotal = modelTotal;
    }

    public int getInventoryCnt() {
        return inventoryCnt;
    }

    public void setInventoryCnt(int inventoryCnt) {
        this.inventoryCnt = inventoryCnt;
    }

    public String getTaskStatus() {
        return taskStatus;
    }

    public void setTaskStatus(String taskStatus) {
        this.taskStatus = taskStatus;
    }

    public ModelTaskCateVo getCate() {
        return cate;
    }

    public void setCate(ModelTaskCateVo cate) {
        this.cate = cate;
    }

    public String getAssignPerson() {
        return assignPerson;
    }

    public void setAssignPerson(String assignPerson) {
        this.assignPerson = assignPerson;
    }

    public String getInventoryPerson() {
        return inventoryPerson;
    }

    public void setInventoryPerson(String inventoryPerson) {
        this.inventoryPerson = inventoryPerson;
    }

    public String getTaskStatusCode() {
        return taskStatusCode;
    }

    public void setTaskStatusCode(String taskStatusCode) {
        this.taskStatusCode = taskStatusCode;
        if (StringUtils.isNotBlank(taskStatusCode)) {
            setTaskStatus(ModelConstant.MODEL_TASK_STATUS_STR.get(taskStatusCode));
        }
    }

}
